snapshot: Don't handle clip anymore
authorBenjamin Otte <otte@redhat.com>
Sun, 15 Apr 2018 12:07:25 +0000 (14:07 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 17 Apr 2018 21:21:37 +0000 (23:21 +0200)
commit2db43edbd6e689666727dd2a644606c7915803e2
tree19cc755d740893790a816b3ead1d5e6c176997dd
parent3b2a03367ceeb741c6b2c53e8b7ca19b0d2da0a8
snapshot: Don't handle clip anymore

If widgets want to clip things, they now need to do it themselves.

By not taking care of clip, we avoid the need to track clip. And by not
tracking clip, we can avoid all unnecessary cache invalidations that we
were doing for render nodes whenever the clip changed.

And when you are scrolling, the clip changes *a lot*.
gtk/gskpango.c
gtk/gtkiconview.c
gtk/gtksnapshot.c
gtk/gtksnapshot.h
gtk/gtksnapshotprivate.h
gtk/gtkwidget.c
gtk/gtkwidgetprivate.h